package com.ruoyi.ucar.service;

import java.io.IOException;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.ucar.boreq.*;
import com.ruoyi.ucar.boresp.*;
import com.ruoyi.ucar.domain.TCustomer;
import com.ruoyi.ucar.voreq.CustomerAddVoReq;
import com.ruoyi.ucar.voreq.CustomerUpdateVoReq;

/**
 * 客户主Service接口
 * 
 * @author sungangbin
 * @date 2025-05-13
 */
public interface ITCustomerService extends IService<TCustomer> {

    /**
     * 根据用户名查询客户
     *
     * @param userName
     * @return
     */
    public TCustomer selectTCustomerByUserName(String userName);

    /**
     * 查询客户主
     *
     * @param id 客户主主键
     * @return 客户主
     */
    public TCustomer selectTCustomerById(Long id);

    /**
     * 查询客户主列表
     *
     * @param tCustomer 客户主
     * @return 客户主集合
     */
    public List<TCustomer> selectTCustomerList(TCustomer tCustomer);

    /**
     * 新增客户主
     *
     * @param tCustomer 客户主
     * @return 结果
     */
    public int insertTCustomer(TCustomer tCustomer);

    /**
     * 修改客户主
     *
     * @param tCustomer 客户主
     * @return 结果
     */
    public int updateTCustomer(TCustomer tCustomer);

    /**
     * 批量删除客户主
     *
     * @param ids 需要删除的客户主主键集合
     * @return 结果
     */
    public int deleteTCustomerByIds(Long[] ids);

    /**
     * 删除客户主信息
     *
     * @param id 客户主主键
     * @return 结果
     */
    public int deleteTCustomerById(Long id);

    public CustomerListQueryBoResp queryCustomerByCond(CustomerListQueryBoReq customerListQueryBoReq);

    public CustomerListQueryNoPageBoResp queryCustomerNoPageByCond(CustomerListQueryNoPageBoReq customerListQueryNoPageBoReq);

    public String saveCustomer(CustomerAddVoReq customerAddVoReq);

    public int updateCustomer(CustomerUpdateVoReq customerUpdateVoReq);

    public TCustomer selectCustomerByCustomerUuid(String customerUuid);

    public int deleteTCustomerById(String customerUuid, Long id);

    public int batchDelete(String[] customerUuids, Long[] ids);

    public CustomerDetailQueryBoResp customerDetailQuery(CustomerDetailQueryBoReq customerDetailQueryBoReq);

    public CustomerDetailMobileQueryBoResp customerDetailMobileQuery();

    public CustomerSignBoResq judgeCustomerSign();

    public  String uploadCustomerSign(UploadCustomerSignBoReq uploadCustomerSignBoReq) throws IOException;


    public CustomerBalanceConsumeBoResp balanceConsume(CustomerBalanceConsumeBoReq customerBalanceConsumeBoReq);

    public CustomerBalanceRestoreBoResp balanceRestore(CustomerBalanceRestoreBoReq customerBalanceRestoreBoReq);


    public  List<InComeTotolBoResp> income(InComeTotolBoReq inComeTotolBoReq);


    public int uploadCustomerData(CustomerUploadDataBoReq customerUploadDataBoReq);
}
